package com.xry.mapper;

import com.xry.bean.Buycar;
import com.xry.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BuycarDao {

    int add(@Param("param") Buycar buycar);

    int del(@Param("id") Integer id);

    int edit(@Param("param") Buycar buycar);

    List<Buycar> all(@Param("param") Buycar buycar);

    Buycar one(@Param("id") Integer id);

    int pageCount(@Param("param") Buycar buycar);

    List<Buycar> page(@Param("page") Page page,@Param("param") Buycar buycar);
}
